class Contact {
  String firstName = '';
  String firstPhone = '';
  int firstRelation = 0;
  String secondName = '';
  String secondPhone = '';
  int secondRelation = 0;

  Contact({
    this.firstName = '',
    this.firstPhone = '',
    this.firstRelation = 0,
    this.secondName = '',
    this.secondPhone = '',
    this.secondRelation = 0,
  });

  Contact.fromJson(Map<String, dynamic> json) {
    firstName = json['first_name'];
    firstPhone = json['first_phone'];
    firstRelation = json['first_relation'];
    secondName = json['second_name'];
    secondPhone = json['second_phone'];
    secondRelation = json['second_relation'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['first_name'] = firstName;
    data['first_phone'] = firstPhone;
    data['first_relation'] = firstRelation;
    data['second_name'] = secondName;
    data['second_phone'] = secondPhone;
    data['second_relation'] = secondRelation;
    return data;
  }
}
